.class public Lcom/estrongs/android/ui/dialog/s;
.super Lcom/estrongs/android/ui/dialog/q;
.source "CopyConfirmDialog.java"


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/List;Lcom/estrongs/fs/g;Z)V
    .locals 11
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;",
            "Lcom/estrongs/fs/g;",
            "Z)V"
        }
    .end annotation

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/dialog/q;-><init>(Landroid/content/Context;)V

    const v0, 0x7f0c00a9

    .line 2
    invoke-super {p0, v0}, Lcom/estrongs/android/ui/dialog/q;->setContentView(I)V

    .line 3
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mContentView:Landroid/view/View;

    const v1, 0x7f0907bc

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 5
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/q;->mContentView:Landroid/view/View;

    const v2, 0x7f0907c8

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 6
    iget-object v2, p0, Lcom/estrongs/android/ui/dialog/q;->mContentView:Landroid/view/View;

    const v3, 0x7f09048a

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    .line 7
    iget-object v3, p0, Lcom/estrongs/android/ui/dialog/q;->mContentView:Landroid/view/View;

    const v4, 0x7f090bb2

    invoke-virtual {v3, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    .line 8
    iget-object v4, p0, Lcom/estrongs/android/ui/dialog/q;->mContentView:Landroid/view/View;

    const v5, 0x7f09048b

    invoke-virtual {v4, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    .line 9
    iget-object v4, p0, Lcom/estrongs/android/ui/dialog/q;->mContentView:Landroid/view/View;

    const v5, 0x7f090bb6

    invoke-virtual {v4, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    .line 10
    iget-object v4, p0, Lcom/estrongs/android/ui/dialog/q;->mContentView:Landroid/view/View;

    const v5, 0x7f090248

    invoke-virtual {v4, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    .line 11
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    .line 12
    invoke-interface {p2}, Ljava/util/List;->size()I

    move-result v6

    const/4 v7, 0x0

    const/4 v8, 0x0

    const/4 v9, 0x0

    :cond_0
    :goto_0
    if-ge v9, v6, :cond_3

    .line 13
    invoke-interface {p2, v9}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v10

    check-cast v10, Lcom/estrongs/fs/g;

    invoke-interface {v10}, Lcom/estrongs/fs/g;->getName()Ljava/lang/String;

    move-result-object v10

    if-nez v8, :cond_1

    .line 14
    invoke-interface {p2, v9}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Lcom/estrongs/fs/g;

    invoke-interface {v8}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v8

    invoke-static {v8}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-static {v8}, Lcom/estrongs/android/util/h0;->h(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    :cond_1
    if-nez v10, :cond_2

    .line 15
    invoke-interface {p2, v9}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v10

    check-cast v10, Lcom/estrongs/fs/g;

    invoke-interface {v10}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v10

    invoke-static {v10}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    .line 16
    :cond_2
    invoke-virtual {v5, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    add-int/lit8 v9, v9, 0x1

    if-eq v9, v6, :cond_0

    const-string v10, " , "

    .line 17
    invoke-virtual {v5, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    goto :goto_0

    :cond_3
    if-eqz p4, :cond_4

    const p4, 0x7f110038

    .line 18
    invoke-virtual {p0, p4}, Lcom/estrongs/android/ui/dialog/q;->setTitle(I)V

    const p4, 0x7f1102ab

    .line 19
    invoke-virtual {v4, p4}, Landroid/widget/TextView;->setText(I)V

    goto :goto_1

    :cond_4
    const p4, 0x7f110053

    .line 20
    invoke-virtual {p0, p4}, Lcom/estrongs/android/ui/dialog/q;->setTitle(I)V

    const p4, 0x7f110671

    .line 21
    invoke-virtual {v4, p4}, Landroid/widget/TextView;->setText(I)V

    .line 22
    :goto_1
    invoke-interface {p2, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p4

    check-cast p4, Lcom/estrongs/fs/g;

    invoke-interface {p4}, Lcom/estrongs/fs/g;->getPath()Ljava/lang/String;

    move-result-object p4

    invoke-static {p4}, Lcom/estrongs/android/util/h0;->U1(Ljava/lang/String;)Z

    move-result p4

    const/4 v4, 0x1

    if-eqz p4, :cond_5

    const p4, 0x7f110a61

    const/4 v6, 0x2

    new-array v6, v6, [Ljava/lang/Object;

    .line 23
    invoke-interface {p2}, Ljava/util/List;->size()I

    move-result p2

    invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p2

    aput-object p2, v6, v7

    const-string p2, ""

    aput-object p2, v6, v4

    invoke-virtual {p1, p4, v6}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p2

    invoke-virtual {v1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_3

    .line 24
    :cond_5
    new-instance p4, Lcom/estrongs/android/ui/dialog/s$a;

    invoke-direct {p4, p0, p1, v1}, Lcom/estrongs/android/ui/dialog/s$a;-><init>(Lcom/estrongs/android/ui/dialog/s;Landroid/content/Context;Landroid/widget/TextView;)V

    .line 25
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 26
    invoke-interface {p2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p2

    :goto_2
    invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z

    move-result v6

    if-eqz v6, :cond_6

    invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/estrongs/fs/g;

    .line 27
    new-instance v9, Ljava/io/File;

    invoke-interface {v6}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v6

    invoke-direct {v9, v6}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-interface {v1, v9}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_2

    :cond_6
    new-array p2, v4, [Ljava/util/List;

    aput-object v1, p2, v7

    .line 28
    invoke-virtual {p4, p2}, Landroid/os/AsyncTask;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    :goto_3
    const p2, 0x7f110a60

    new-array p4, v4, [Ljava/lang/Object;

    .line 29
    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    aput-object v1, p4, v7

    invoke-virtual {p1, p2, p4}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 30
    invoke-static {v8}, Lcom/estrongs/android/util/h0;->m(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v2, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 31
    invoke-interface {p3}, Lcom/estrongs/fs/g;->getPath()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Lcom/estrongs/android/util/h0;->m(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v3, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method
